<!DOCTYPE html>
<html ng-app="peiwan_admin">
<head>
<meta charset="UTF-8">
<title>陪玩申请列表</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<script type="text/javascript" src="js/settings.min.js"></script>
<script type="text/javascript"
	src="http://cdn.bootcss.com/basket.js/0.5.2/basket.full.min.js"></script>
<link rel="stylesheet"
	href="http://cdn.bootcss.com/pure/0.6.0/pure-min.css">
<link rel="stylesheet" href="css/adapt.min.css">
<link rel="stylesheet"
	href="http://cdn.bootcss.com/alertify.js/0.3.11/alertify.core.min.css">
<link rel="stylesheet"
	href="http://cdn.bootcss.com/alertify.js/0.3.11/alertify.default.css">
</head>
<body ng-controller="PeiwanFormListCtrl">
	<div class="pure-u-1 padding3">
		<table class="horizontal-center pure-table pure-table-bordered">
			<thead>
				<tr>
					<th>#</th>
					<th>所玩游戏</th>
					<th>游戏昵称</th>
					<th>用户名</th>
					<th>头像照</th>
					<th>游戏id照</th>
					<th>性别</th>
					<th>地址</th>
					<th>最后活跃时间</th>
					<th>操作</th>
				</tr>
			</thead>

			<tbody>
				<tr ng-repeat="peiwanForm in peiwanForms">
					<td>{{peiwanForm.id}}</td>
					<td>{{peiwanForm.gameName}}</td>
					<td>{{peiwanForm.gameNickname}}</td>
					<td>{{peiwanForm.user.username}}</td>
					<td><img alt="" ng-src="{{peiwanForm.headPhoto}}"
						style="width: 50px; height: 50px"></td>
					<td><img alt="" ng-src="{{peiwanForm.idPhoto}}"
						style="width: 50px; height: 50px"></td>
					<td>{{peiwanForm.user.gender}}</td>
					<td>{{peiwanForm.address}}</td>
					<td>{{peiwanForm.user.lasttime}}</td>
					<td>
						<button ng-click="updateIsAudit(peiwanForm.user.id,0)"
							class="pure-button horizontal-center">拒绝</button>
						<button ng-click="updateIsAudit(peiwanForm.user.id,1)"
							class="pure-button horizontal-center green">同意</button>
						<button ng-click="deletePeiwanForm(peiwanForm.id)"
							class="pure-button horizontal-center red">删除</button>
					</td>
				</tr>
			</tbody>
		</table>
	</div>
	<div class="pure-u-1 padding3">
		<a href="javascript:" ng-click="prePage()">前一页</a> <input
			id="page_input" placeholder="跳转到" value="1" />
		<button ng-click="toPage()">确定</button>
		<a href="javascript:" ng-click="nextPage()">后一页</a>
	</div>
</body>
<script type="text/javascript" src="js/peiwan_form_list.min.js"></script>
</html>